<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

class ModifyPaymentLog07311406 extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::table('payment_log', function (Blueprint $table) {
            //
            $table->unsignedTinyInteger('type')->default(0)->after('cooperative_id')->comment('充值类型：1微信，2支付宝');
            $table->string('trade_no',255)->default('')->after('type')->comment('内部订单');
            $table->string('out_trade_no',255)->default('')->after('trade_no')->comment('外部订单');

        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::table('payment_log', function (Blueprint $table) {
            //
        });
    }
}
